package com.example.demo01.Entity.mobileEntity;

import org.springframework.stereotype.Component;

@Component
public class ServicePointEntity {
    //attributes
    private String name;
    private Float lon;
    private Float lat;

    //setter
    public void setName(String name) {
        this.name = name;
    }

    public void setLon(Float lon) {
        this.lon = lon;
    }

    public void setLat(Float lat) {
        this.lat = lat;
    }

    //getter
    public String getName() {
        return name;
    }

    public Float getLon() {
        return lon;
    }

    public Float getLat() {
        return lat;
    }

    //constructors
    public ServicePointEntity() {
    }

    public ServicePointEntity(String name, Float lon, Float lat) {
        this.name = name;
        this.lon = lon;
        this.lat = lat;
    }
    //toString
    @Override
    public String toString() {
        return "ServicePointEntity{" +
                "name='" + name + '\'' +
                ", lon=" + lon +
                ", lat=" + lat +
                '}';
    }
}
